﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="InstructorHome.aspx.vb" Inherits="TWIN_test.InstructorHome" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Instructor - Home</title>
        <style type="text/css">
        p.navigation-bar 
        {
            float:left;
            list-style:none;
            padding:0;
            width:800px;
            height: 25px;
        }
        p.navigation-bar a {
            text-decoration:none;
            padding:2px 0;
            width:155px;
            background:#000;
            color:#eee;
            float:left;
            text-align:center;
            border-left:1px solid #fff;
        }
        .style1
        {
            float:right;
            text-decoration: none;
        }
        </style>  
</head>
<body background="../../Images/Training-Instructor-Background.gif">
    <form id="form2" runat="server">
    <div>
    <center style="width:800px; height:285px; border:1px solid black;background:#FFFFFF; text-align: left;">
    <br />
    Welcome to the TWIN System, Instructor Name! 
    <a href="../../User_Authentication/Login.aspx" class="style1">Logout</a>
    <p style="background:black;" class="navigation-bar">
        <asp:Button ID="homeButton" runat="server" Text="Home" /> <asp:Button ID="viewProfileButton" runat="server" Text="View Profile" />
        <asp:TextBox style="float:right;" ID="searchBox" runat="server" Width="176px" ForeColor="Silver">Search</asp:TextBox> </p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="TITLE" HeaderText="TITLE" SortExpression="TITLE" />
                <asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" 
                    SortExpression="ID" />
                <asp:BoundField DataField="DESCRIPTION" HeaderText="DESCRIPTION" 
                    SortExpression="DESCRIPTION" />
            </Columns>
        </asp:GridView>
        <br />
    </center>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString2.ProviderName %>" 
        
        SelectCommand="SELECT DISTINCT &quot;TITLE&quot;, &quot;ID&quot;, &quot;DESCRIPTION&quot; FROM &quot;WORKSHOP&quot; WHERE (&quot;INSTRUCTORID&quot; = :INSTRUCTORID)">
        <SelectParameters>
            <asp:Parameter Name="INSTRUCTORID" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>

    </form>
</body>
</html>
